﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Alogient.Cameleon.Sdk;

namespace Alogient.Cameleon.Sdk.tests
{
    [TestFixture]
    public class CMSettingsTest : FixtureBase
    {
        [SetUp]
        public void Init()
        {
        }

        [TearDown]
        public void Finish()
        {
        }

        [Test]
        public void UrlRewritingEnabled()
        {
            var result = CMSettings.UrlRewritingEnabled;
            Assert.IsFalse(result);
        }

        [Test]
        public void DefaultNavID()
        {
            var result = CMSettings.DefaultNavID;
            Assert.AreEqual(1, result);
        }

        [Test]
        public void DefaultCultureCode()
        {
            var result = CMSettings.DefaultCultureCode;
            Assert.AreEqual("fr-CA", result);
        }

        [Test]
        public void AdminUrl()
        {
            var result = CMSettings.AdminUrl;
            Assert.AreEqual("admin", result);
        }

        [Test]
        public void MediaUrl()
        {
            var result = CMSettings.MediaUrl;
            Assert.AreEqual("~/CMS/Media/", result);
        }

        [Test]
        public void FormMediaUrl()
        {
            var result = CMSettings.FormMediaUrl;
            Assert.AreEqual("~/CMS/FormMedia/", result);
        }

        [Test]
        public void CacheTime()
        {
            var result = CMSettings.CacheTime;
            Assert.AreEqual(0, result);
        }

        [Test]
        public void SMTPServer()
        {
            var result = CMSettings.SMTPServer;
            Assert.AreEqual(null, result);
        }

        [Test]
        public void HttpsAdminUrl()
        {
            var result = CMSettings.HttpsAdminUrl;
            Assert.AreEqual("admin", result);
        }
    }
}
